package db4oClass;

import general.dbClass.*;

import com.db4o.config.CommonConfiguration;

public class ServerConfig {
	public static void setConfig(CommonConfiguration common) {
		common.objectClass(DBPicInfo.class).objectField("nr").indexed(true);
		common.objectClass(DBCategory.class).objectField("nr").indexed(true);
		common.objectClass(DBKeyword.class).objectField("nr").indexed(true);	
		common.objectClass(DBPicInfo.class).cascadeOnUpdate(true);
		//common.objectClass(DBPicInfo.class).cascadeOnDelete(true);
		
		common.objectClass(DBExif.class);
		common.objectClass(DBPicData.class);
		common.objectClass(DBThumbInfo.class);
	}
}
